//
// Created by jiang on 2021/12/20.
//

#ifndef __FOC_H
#define __FOC_H


#include "param.h"

void FOC_Clarke(const abc_t *abc, ap_t *ap);

void FOC_Park(const ap_t *ap, uint16_t theta, dq_t *dq);

void FOC_InvPark(const dq_t *dq, ap_t *ap);

void FOC_InvParkWithAngle(const dq_t *dq, uint16_t theta, ap_t *ap);

uint8_t FOC_SVPWM(const ap_t *ap, abc_t *t);


#endif //FOC_FOC_H
